/* 
 * File:   FileCachedCleanProcessQuitHandler.h
 * Author: dell
 *
 * Created on 2012年11月21日, 下午5:47
 */

#ifndef FILECACHEDCLEANPROCESSQUITHANDLER_H
#define	FILECACHEDCLEANPROCESSQUITHANDLER_H

#include "common.h"
#include <string>
#include "ProcessQuitSignal.h"
#include <evhttp/events.h>


namespace Rapid{
    class FileCachedCleanProcessQuitHandler : public ProcessQuitSignal{
    public:
        FileCachedCleanProcessQuitHandler(std::string& hdir);
        virtual ~FileCachedCleanProcessQuitHandler();
        
    protected:  
        bool onProcessSignalEvent(const ProcessSignalEvent* e);
        bool onTimerEvent(const TimerEvent* e);        
        
        
    private:
        std::string homeDir; //服务主目录, 尾部有"/"
    };
}
#endif	/* FILECACHEDCLEANPROCESSQUITHANDLER_H */

